<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<base href="<%=basePath%>"/>
<title>soda创业教育平台</title>
<link href="houtai/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="houtai/js/main.js"></script>
<script type="text/javascript" src="houtai/js/student.js"></script>

</head>
<body>
<form action="<%=request.getContextPath() %>/StudentServlet?method=editStu" method="post" onsubmit="return ckall()">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td style="height:25px; background-color:#f3f3f3; font-weight:bold" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;当前位置： <img src="../../images/arrow.gif" align="absmiddle">&nbsp;&nbsp;soda创业教育平台&nbsp;&nbsp; <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;后台管理&nbsp;&nbsp; <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;学生管理</td>
  </tr>
  <tr>
    <td style="height:34px; background-image:url(houtai/images/main_header.gif); border-bottom:1px solid #cfd8e0; padding:0px">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="20" height="34"><img src="houtai/images/main_headerL.gif" width="20" height="34"></td>
          <td style="color:#90c8e8;"><img src="houtai/images/icon_card.gif" width="16" height="16" align="absmiddle">&nbsp;&nbsp;<strong>编辑学生</strong></td>
          <td align="right" class="white" style="padding-right:20px">
          <a  class="barBtn" onClick="javascript:history.go(-1);"><img src="houtai/images/btn_left.gif" align="absmiddle"> 后退</a>
          <a  class="barBtn" onClick="javascript:history.go(+1);"><img src="houtai/images/btn_right.gif" align="absmiddle"> 前进</a>
          <a href="javascript:freshedit(${stu.stuId })" class="barBtn"><img src="houtai/images/btn_refresh.gif" align="absmiddle"> 刷新</a>
          </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="100%" valign="top">
    <div style="overflow:auto;height:100%; width:100%">
    
      <table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
        </TR>
          <TR>
          <th align="center"><span class="BGCgray">用户名</span></th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuLoginname }"  id="uname" name="uname" onblur="ckuname()" readonly />
          <span id="spuname"></span></TD>
          <TR>
          <th align="center"><span class="BGCgray">密码</span></th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuPassword }" id="pwd"
								name="pwd" onblur="ckpwd()"/><span id="sppwd"></span>
          </TD>
        <TR>
          <th align="center"><span class="BGCgray">姓名</span></th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuName }" id="rname" name="rname" onblur="ckrname()"/><span
								id="sprname"></span>
          </TD>
        </TR>
        <TR>
          <th align="center">性别</th>
          <TD class="BGCgray">
          	<c:choose>
  			<c:when test="${stu.stuSex==1 }">
  				<input type="radio" name="gender" checked="checked" value="男" />男
  				<input type="radio" name="gender"  />女
                </c:when>
  			<c:otherwise>
  				<input type="radio" name="gender"  />男
             	<input type="radio" name="gender" checked="checked" value="女"/>女</c:otherwise>
  		</c:choose>
          </TD>
        </TR>
        <TR>
          <th align="center">身份证</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuIdcard }" id="uid" name="uid" onblur="ckuid()"/><span
								id="spuid"></span>
          </TD>
        </TR>
        <TR>
          <th align="center">联系电话</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuPhone }" id="phone" name="phone" onblur="ckphone()"/><span
								id="spphone"></span>
          </TD>
        </TR>
        <TR>
          <th align="center">现住址</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuAddress }" id="address"
								name="address" onblur="ckaddress()"/><span id="spaddress"></span>
          </TD>
        </TR>
        <TR>
          <th align="center">邮箱</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuEmail }" id="email" name="email" onblur="ckemail()"/><span
								id="spemail"></span>
          </TD>
        </TR>
        <TR>
          <th align="center">学校</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuSchool }" id="school" name="school" />
          </TD>
        </TR>
        <TR>
          <th align="center">专业</th>
          <TD class="BGCgray">
          	<input type="text" value="${stu.stuMajor }" id="major" name="major"/>
          </TD>
        </TR>
        <TR>
          <th align="center">备注</th>
          <TD class="BGCgray">
          	<textarea rows="6" cols="30" style="resize:none;" id="remark" name="remark">${stu.stuRemark }</textarea>
          </TD>
        </TR>
      </table>
      <div style="width:100%; text-align:center; padding:5px">
        <BUTTON style="HEIGHT:25px" type="submit" ><img src="houtai/images/btn_save.gif" width="16" height="16" align="absmiddle"> 保存</BUTTON>
        <BUTTON style="HEIGHT:25px" onClick="javascript:history.go(-1);"><img src="houtai/images/btn_back.gif" width="16" height="16" align="absmiddle"> 返回</BUTTON>
      </div>
    </div>
  </td>
  </tr>
</table>
</form>
</body>
</html>